/*package bl.commodity;

import java.rmi.RemoteException;

import o.Authority;
import o.UserType;
import vo.CommodityTypeVo;
import vo.UserVo;
import blservice.commodity.CommodityTypeBLService;
import db.commodity.CommodityTypeDBStub;
import dbservice.commodity.CommodityTypeDBService;

public class CommodityTypeBLDriver {
	CommodityTypeBLService bl;
	CommodityTypeDBService db;
	public static void main(String[] args) {
		UserVo user=new UserVo();
		user.setName("小华");
		user.setAuthority(Authority.普通权限);
		user.setPassword("abc");
		user.setOperator("test");
		user.setUserType(UserType.库存管理人员);
		user.setOperation("商品管理");
		CommodityBLDriver d=new CommodityBLDriver();
		try {
			d.drive(user);
		} catch (RemoteException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}
    void drive() throws RemoteException{
		bl=new MockCommodityTypeBL();
		db=new CommodityTypeDBStub();
	
		CommodityTypeVo vo=new CommodityTypeVo();
		vo.setOperation("商品分类管理");
		vo.setOperator("test");
//		vo.set编号("000001");
		vo.set名称("节能日光灯");
	    vo.set父节点("日光灯");
	    vo.set是叶节点(true);
		
		System.out.println("addCommodityType:");
		CommodityTypeVo result=bl.addCommodityType(vo);
		if(result.isSuccessed()){
			System.out.println("添加成功");
		}else{
			System.out.println(result.getFailMessage());
		}
		
		System.out.println("deleteCommodityType:");
		result=bl.deleteCommodityType(vo);
		if(result.isSuccessed()){
			System.out.println("删除成功");
		}else{
			System.out.println(result.getFailMessage());
		}
		
		System.out.println("updateCommodityType:");
		result=bl.updateCommodityType(vo);
		if(result.isSuccessed()){
			System.out.println("修改成功");
		}else{
			System.out.println(result.getFailMessage());
		}
       		
    }
}*/

